package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.DTO.ResultDTO;
import com.example.demo.entity.User;
import org.springframework.stereotype.Service;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/18 9:23
 */
@Service
public interface UserService extends IService<User> {
    ResultDTO register(User user);
    ResultDTO login (String mail,String password);
    void logout(String token);
}
